#include "VertexBufferLayout.h"

#include <glad/glad.h>

VertexBufferLayout::VertexBufferLayout(unsigned int stride) : m_bufferStride(stride)
{
}

VertexBufferLayout::~VertexBufferLayout()
{
}

unsigned int VertexBufferLayout::getStride() const
{
    return m_bufferStride;
}

void VertexBufferLayout::addAttribute(unsigned int location, int count, unsigned int type, unsigned int offset, unsigned char normalized)
{
    m_vecAttributes.push_back({location, count, type, offset, normalized});
}

std::vector<VertexBufferElement> const &VertexBufferLayout::getAttributes() const
{
    return m_vecAttributes;
}
